<?php $request = $this->request; ?>
<?php $reqdelurl = 'delete/request/'.$request->requestId.'/'.$this->token->delete; 
    	  $requrl = 'request/'.$request->requestId;
?>
<div class="thumbnail_offer">
	<?php if($this->supbutton){ ?>
	<div class="supprReq"><a class="close" type="button" title="<?php echo $this->translate('Delete this request'); ?>" href="<?php echo $this->baseUrl($reqdelurl); ?>">×</a></div>
	<?php } ?>
	<div class="row">
		<div class="span6">
			<div class="avatarReq">
				<a href="<?php echo $this->baseUrl($this->userUrl);?>"><img class="img-rounded" src="<?php echo $this->baseUrl('img/profil/'.$this->objectOwner->avatar);?>" style="width: 50px; height: 50px;"></img></a>
			</div>
			<div class="contentReq">
				
				<a href="<?php echo $this->baseUrl($this->userUrl);?>"><?php echo $this->objectOwner->firstName." ".$this->objectOwner->lastName; ?></a>
				<?php echo $this->translate($this->verb)." ".$this->request->keyword." (".$this->translate($this->request->class).")"; ?>
				<br>
				<span class="timeLoc">
					<?php $time = $this->timeSince(strtotime($this->request->date)); 
						  echo $this->translate('%1$s %2$s ago', $time['nb'] ,$time['text']);
					?>
					<?php echo $this->translate($this->location)." ".$this->request->admin_area_lvl1." ".$this->request->admin_area_lvl2." - ".$this->request->country; ?>
				</span>

				<div class="resultReq">
					<a href="<?php echo $this->baseUrl($requrl); ?>" title="<?php echo $this->translate($request->keyword); ?>"><?php echo $this->numberOfResults;?> <?php echo ($this->numberOfResults == 1) ? $this->translate($request->class) : $this->translate($request->class."s");?></a>
					<?php if($this->request->class != "object"){?>
					 · 
					<a class="info" title="" data-placement="top" data-toggle="tooltip" href="<?php echo $this->baseUrl('object/'.$this->request->class);?>" data-original-title="<?php echo $this->translate('Add')." ".$this->translate('a(n)')." ".$this->translate($this->request->class);?>"><b class="icon-plus-sign"></b></a>
					<?php } ?>
					<div class="shareReq">
						<a href="#" class="logo-facebook"></a>
						<a class="logo-twitter"></a>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>